<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!-- menu start -->

<!-- 권한에 따라 페이지에서 보여주는 것을 달리하기 위해 authorize 태그를 사용할 수 있다. -->
<sec:authorize ifNotGranted="ROLE_USER">
	<table width="195" border="0" cellspacing="0" cellpadding="0" class="TP15 Right_box" height="100%">
	<tr>
		<td valign="top" height="12%">
			<table>
				<tr>
					<td class="font12B_333333"><img src="<c:url value="/images/inc/ic_dot.gif"/>" width="9" height="9" align="absmiddle"> UMANJI 로그인 </td>
				</tr>
				<tr>
		        <td>
		        	<form action="<c:url value='/loginProcess'/>" method="POST">
			        <table width="195" border="0" cellspacing="0" cellpadding="0">
					<tr>
		        	    <td colspan="3" height="5px"></td>
					</tr>
					<tr>
						<td  valign="top"><input name="j_username" id="j_username" type="text" class="input_login" value="아이디" onclick="delval('j_username')"/></td>
		            	<td width="15"><input type="checkbox" name="_acegi_security_remember_me" class="check_box" /></td>
		            	<td>ID저장</td>
					</tr>
					<tr>
		            	<td class="TP3"><input name="j_password" id="j_password" type="password" class="input_login" value="비밀번호" onclick="delval('j_password')"/></td>
		            	<td colspan="2" class="TP3" align="center">
		            		<INPUT TYPE="image" SRC="<c:url value="/images/btn/btn_login.gif"/>" HEIGHT="18" WIDTH="46" BORDER="0" ALT="로그인">
		            	</td>
					</tr>
					</table>
					</form>
				</td>
		      	</tr>
		      	<tr>
			        <td class="TP5">
			        	<span class="font11B_313031"><a href="../user/terms" class="font11B_313031">회원가입</a> </span><span class="font11_636563"> l <a href="../user/findId" class="font11_636563">아이디/비밀번호찾기</a></span>
					</td>
		      	</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td valign="top">
      	<table width="195" border="0" cellspacing="0" cellpadding="0">
      		<tr>
		    	<td class="tddcdcdc"></td>
		    </tr>
	        <tr>
	          <td class="font12B_333333">	          	
	          		<br/><a href="<c:url value='createTo'/>"><img src="<c:url value="/images/btn/btn_sell_regist.gif"/>" width="143" height="25" border="0"></a>	       
	          </td>
	        </tr>
	        <tr>
	          <td height="40">
	          	좌측 지도에서 물건을 팔 장소를<br>선택하십시오.
	          </td>
	        </tr>
      	</table>
		</td>
	</tr>
	</table>
</sec:authorize>
<sec:authorize ifAnyGranted="ROLE_USER, ROLE_ADMIN">
	<!-- 로그인 화면 -->
	<table width="195" border="0" cellspacing="0" cellpadding="0" class="TP15 Right_box" align="center" style="padding-left: 5px" height="100%">
    <tr>
		<td valign="top" height="15%">
			<table>
		        <tr>
		          <td class="font12B_333333">
		          <img src="<c:url value="/images/inc/ic_dot.gif"/>" width="9" height="9" align="absmiddle">
		           <b><sec:authentication property="principal.username"/></b> 님 환영합니다.
		           </td>
		        </tr>
		        <tr>
		          <td class="TP10 BP5"><table width="123" border="0" cellspacing="0" cellpadding="0">
		            <tr>
		              <td class="pic_bg" style="padding:1 1 1 1px" valign="top"><img src="<c:url value="/images/inc/myphoto.gif"/>" width="118" height="119"></td>
		            </tr>
		          </table></td>
		        </tr>
		        <tr>
		          <td class="dot01_bg LP15 "><a href="#">레벨통장</a> <span class="font12_7bb515">(10)</span><br>
		            <a href="#">받은쪽지</a> <span class="font12_7bb515">(5)</span><br>
		            <a href="#">나의 포인트</a> <span class="font12_7bb515">(${user.point }만)</span><br>
		            <a href="#">나의 신뢰도</a> <span class="font12_7bb515">(${user.credibility })</span></td>
		        </tr>
		        <tr>
		          <td class="TP5">
		          <a href="<c:url value="/umj/user/update/"/>"><img src="<c:url value="/images/btn/btn_modify.gif"/>" width="56" height="18" border="0"></a>
		          <a href="<c:url value="/logout"/>"><img src="<c:url value="/images/btn/btn_logout.gif"/>" width="56" height="18"></a>
		          </td>
		        </tr>		
			</table>
		</td>
	</tr>
    <tr>
		<td valign="top">
      	<table width="195" border="0" cellspacing="0" cellpadding="0">
      		<tr>
		    	<td class="tddcdcdc"></td>
		    </tr>
	        <tr>
	          <td class="font12B_333333">	          	
	          		<br/><a href="<c:url value='createTo'/>"><img src="<c:url value="/images/btn/btn_sell_regist.gif"/>" width="143" height="25" border="0"></a>	       
	          </td>
	        </tr>
	        <tr>
	          <td height="40">
	          	좌측 지도에서 물건을 팔 장소를<br>선택하십시오.
	          </td>
	        </tr>
      	</table>
		</td>
	</tr>
      
      


      </table>
	<!-- 로그인 후 화면 끝 -->
</sec:authorize>





 
<!-- menu end -->